#ifndef _HCC_ERROR_CODE_MID_FILE_TRANSFER_H_
#define _HCC_ERROR_CODE_MID_FILE_TRANSFER_H_

#include "ofc/ofc_types.h"
#include "hcc/hcc_error_code.h"
#include "hcc/hcc_error_code_mid.h"

#ifdef __cplusplus
extern "C" {
#endif

#define HCC_MAKE_MID_FILE_TRANSFER_ERROR(error_code) (int)HCC_ERROR(HCC_MAKE_MID_WARE_ERROR(kHccMidWareFileTransfer, error_code, HCC_ERROR_LEVEL_ERROR))


/**
 * 文件传输模块:文件传输模块
 */
typedef Int32 THccMidWareFileTransfer;

#define kHccMidWareFileTransferSuccess	HCC_ERROR_SUCCESS	///< 成功,没有错误
#define kHccMidWareFileTransferParamInvalid	HCC_MAKE_MID_FILE_TRANSFER_ERROR(1)	///<下载参数错误
#define kHccMidWareFileTransferTaskBusy	HCC_MAKE_MID_FILE_TRANSFER_ERROR(2)	///<上传任务忙
#define kHccMidWareFileTransferParamAddressInvalid	HCC_MAKE_MID_FILE_TRANSFER_ERROR(3)	///<地址无效
#define kHccMidWareFileTransferParamFileSizeInvalid	HCC_MAKE_MID_FILE_TRANSFER_ERROR(4)	///<文件大小无效
#define kHccMidWareFileTransferParamRwError	HCC_MAKE_MID_FILE_TRANSFER_ERROR(5)	///<参数读写出错
#define kHccMidWareFileTransferStatusRwError	HCC_MAKE_MID_FILE_TRANSFER_ERROR(6)	///<状态读写出错
#define kHccMidWareFileTransferFileIoError	HCC_MAKE_MID_FILE_TRANSFER_ERROR(7)	///<文件io出错
#define kHccMidWareFileTransferResNotEnough	HCC_MAKE_MID_FILE_TRANSFER_ERROR(8)	///<资源不足

#ifdef __cplusplus
}  // extern "C"
#endif

#endif // _HCC_ERROR_CODE_MID_FILE_TRANSFER_H_
/**
 * @
 */
